<?php
function cut_str($val,$start,$end){
            $total 	= strlen($val);
            $cutted = mb_substr($val,$start,$end,'UTF-8');
            $cutted_leng = strlen($cutted);
            if($cutted_leng < $total){
                $seccess = $cutted."...";
            }else{
                $seccess = $cutted;
            }
            return $seccess;
        }
?>